﻿/*****************************************************************//**
 * @file    FITKViewAdaptorCoordinate.h
 * @brief   Adaptor for coordinate axes.
 *  
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-05-27
 *********************************************************************/

#ifndef __FITKVIEWADAPTORCOORDINATE_H__
#define __FITKVIEWADAPTORCOORDINATE_H__

#include "FITKVTKViewAdaptorBase.h"

#include "FITKVTKGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for coordinate axes.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-05-27
     */
    class FITKVTKGRAPHADAPTORAPI FITKViewAdaptorCoordinate : public FITKVTKViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKViewAdaptorCoordinate);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-05-27
         */
        explicit FITKViewAdaptorCoordinate() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-05-27
         */
        ~FITKViewAdaptorCoordinate() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-05-27
         */
        bool update() override;

    };

    // Regist base adaptor
    Register2FITKViewAdaptorFactory(Coordinate, Interface::FITKCoordinateSystem, FITKViewAdaptorCoordinate, 1);

    // Regist adaptor
    Register2FITKViewAdaptorFactory(Coordinate, Interface::FITKAbaTransform, FITKViewAdaptorCoordinate, 2);
}   // namespace Exchange

#endif // __FITKVIEWADAPTORCOORDINATE_H__
